﻿<telerik:RadWindow x:Name="selectionRecipientIndex"
                   x:Class="Rio.Framework.Pages.ChildWindows.SelectionRecipientIndexChildWindow"
                   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                   xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                   xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                   xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                   mc:Ignorable="d"
                   Height="400"
                   Width="500"
                   CanClose="False"
                   Header="Sélection d'un index destinataire"
                   WindowStartupLocation="CenterScreen">

    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <TextBlock TextWrapping="Wrap"
                   Text="Veuillez sélectionner un index destinataire :"
                   Margin="10" />
        <ListBox Grid.Row="1"
                 Margin="5"
                 ItemsSource="{Binding Indexes, ElementName=selectionRecipientIndex, Mode=TwoWay}"
                 SelectedItem="{Binding SelectedIndex, ElementName=selectionRecipientIndex, Mode=TwoWay}"
                 DisplayMemberPath="IndexLabel" />
        <StackPanel Grid.Row="2"
                    Orientation="Horizontal"
                    Margin="5"
                    HorizontalAlignment="Right">
            <Button Name="validateButton"
                    Click="validateButton_Click"
                    Content="Valider"
                    Width="75"
                    Height="30" />
            <Button Name="cancelButton"
                    Click="cancelButton_Click"
                    Content="Annuler"
                    Margin="10,0,0,0"
                    Width="75"
                    Height="30" />
        </StackPanel>

    </Grid>
</telerik:RadWindow>
